
<?php $GLOBALS['sys_version'] = ''; //置为空，使各个版本中，Combinator生成的文件名保持移植
 ?>

<script>
var BASEURL = "{{substr(Router::url('/',true),0,-1)}}";
</script>

<div class="container">	
	<div class="row">		
		<div class="col-md-9" style="display: block;">
	<form action="" method="post">
		<div class="tab-content">
		 	<div id="category-content" class="ui-portlet clearfix">
		 		<div class="ui-portlet-header">
				      <span class="title">135编辑器企业插件</span>            
				</div>
				<div class="Content-body">
					<?php echo $Category['Category']['content']; ?>
				</div>
				<br/>
				
			</div>
		</div>
	</form>	
	
	<br/>
	
		</div>
<?php  
if($Category['Category']['left']+1 == $Category['Category']['right']) {
	$cateLeftMenu = $this->Section->getLeftMenu('Category',array('parent_id'=> $Category['Category']['parent_id'],'selectedid'=>$current_cateid)); 
}
else{
	$cateLeftMenu = $this->Section->getLeftMenu('Category',array('parent_id'=> $Category['Category']['id'],'selectedid'=>$current_cateid)); 
}
$leftMenuText = trim(strip_tags($cateLeftMenu));
?>
		<div class="col-md-3">
			<portlet  title="{{$Category['Category']['name']}}">{{$cateLeftMenu}}</portlet>
		</div>
	</div>
	<div>	
		<br/>
		<div class="ui-portlet-header">
		      <span class="title">体验版样例：</span>            
		</div>
 		<script id="WxMsgContent" name="content" style="width:1024px;height:500px;" type="text/plain">初始化内容</script>
		<br/>
	</div>
</div>

<?php 
echo $this->Html->script('/js/ueditor/ueditor.config.js'); //ueditor配置文件引用网址必须与本站点域名相同。否则上传文件等弹出的窗口都为跨域编辑，不可用。
?>

<script type="text/javascript" charset="utf-8" src="http://ueditor.baidu.com/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="http://ueditor.baidu.com/ueditor/lang/zh-cn/zh-cn.js"></script>
<style>
.edui-button.edui-for-135editor .edui-button-wrap .edui-button-body .edui-icon{
    background-image: url("//static.135editor.com/img/icons/editor-135-icon.png") !important;
    background-size: 85%;
    background-position: center;
    background-repeat: no-repeat;
}
</style>

<?php 
echo $this->Html->script('/js/ueditor/plugins/135editor.js'); //
?>
<script>

current_editor = UE.getEditor('WxMsgContent',{
	initialFrameHeight:600,
	focus:true,
	toolbars:[
	['bold','italic', 'underline', 'fontborder', 'strikethrough',  '135editor','rowspacingtop', 'rowspacingbottom', 'lineheight','removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','superscript', 'subscript' ]],
	focusInEnd:true
});


$(function(){
	
		
});

</script>